import React from 'react';
import noPage from '../../libs/img/error/no-page.jpg';

function Error404(props) {
  const url = window.location.href;
  url.indexOf('404')>0 && (window.location.href = '/navPage');
  const style = {
    position: 'fixed',width: '100vw',
    height: '100vh', backgroundSize: '100% 100%',
    backgroundPosition: '0 0', backgroundRepeat: 'no-repeat',
    backgroundOrigin: 'border-box', backgroundClip: 'border-box',
    backgroundImage:`url(${noPage})`
  }
  return <div className='g-ov g-t0 g-l0' style={style}/>;
}

export default Error404;